#!/usr/bin/env node

const cp = require('child_process');
console.log('FATHER process.pid',process.pid);


let child = cp.spawn('node',['03-child.js'],{detached:true ,stdio:[0,1,2]});

child.unref();
//cat.stdout.pipe(process.stdout);
//cat.stderr.pipe(process.stderr);

setTimeout(()=>{
  console.log('5 seconds after father will over');
  process.exit();
},5000);


